<script setup>
import foote from "./foot.vue";
import homee from "./home.vue";
</script>

<template>
  <div class="zt">
    <el-carousel :interval="5000" arrow="always">
      <el-carousel-item>
        <a href=""> <img src="../../assets/imgs/a1.png" alt="" /></a>
      </el-carousel-item>
      <el-carousel-item>
        <a href=""><img src="../../assets/imgs/a2.png" alt="" /></a>
      </el-carousel-item>
    </el-carousel>
    <foote></foote>
    <homee></homee>
  </div>
</template>

<style scoped>
* {
  margin: 0px;
  padding: 0px;
}
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.el-carousel {
  height: 550px; /* 设置轮播图整体高度 */
}

.el-carousel__item {
  height: 100%; /* 每个轮播项的高度继承自父容器 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  height: 700px;
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  height: 700px;
  background-color: #d3dce6;
}
.zt {
  margin-top: 90px;
}
</style>
